<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul{
            width: 300px;
            background-color: pink; 
        }
        ul li{
            list-style: none;
            width: 300px;
            height: 50px;
            background-color: pink;
        }
    </style>

</head>
<body>
   <ul id="disOrder">
       <li>红楼梦</li>
       <li>三国演义 </li>
       <li>水浒传 </li>
       <li>西游记 </li>
   </ul>
   <script>
        var ul = document.getElementById("disOrder");
        var lis = ul.children;
        ul.onclick = function(e){
            for(var i = 0; i < lis.length; i++){
                lis[i].style.backgroundColor = "pink";
            }
            e.target.style.backgroundColor = "yellow";
        }
   </script>
</body>
</html>